<?php
/**
 *
 *
 */
class Dbbackup extends AppModel
{
    public $name       = "Dbbackup";
    public $primaryKey = "backupId";


    public function get($id, $marker = "all")
    {
        return parent::find($marker, array('conditions' => array('backupId' => $id)));
    }

    public function get_data($str, $marker = "all")
    {
        return parent::find($marker, 
                            array('conditions' =>
                                   array('dumpfile LIKE' => "%{$str}%", 'deleted' => 0)
                                   )
                            );
    }
}
?>